﻿using System;
using KPIS.GERP.GFMS.MODEL;
using System.Collections.Generic;
using System.Data;

namespace KPIS.GERP.GFMS.IBLL
{
    public interface IBLL_BGM_ProjectOperation
    {
        IList<M_BGM_ProjectOperation> GetFull(string bgm_source_seq, string bgm_year
            , string job_site_seq, string bgm_proj_seq
            , string use_date, bool IsUse, bool ApproveOnly);
        IList<M_BGM_ProjectOperation> GetList(string bgm_source_seq, string bgm_year
            , string job_site_seq, string bgm_proj_seq
            , string use_date, bool IsUse, bool ApproveOnly);
        IList<M_BGM_ProjectOperation> GetProjectListByEmpSeq(string bgm_year, string bgm_source_seq, string emp_seq);
        IList<M_BGM_ProjectOperation> GetListByBgmOptionSeq(string bgm_year, string bgm_option_seq);
        M_BGM_ProjectOperation GetInfo(string seq);
        bool HaveAmountExist(string bgm_proj_oper_seq);
        //string SelectRecentInsertedRoleSeq();

        string Insert(M_BGM_ProjectOperation info);
        void Update(M_BGM_ProjectOperation info);
        void Delete(M_BGM_ProjectOperation info);
        bool ChangeStatus(M_BGM_ProjectOperation info);
        void CloseOperation(M_BGM_ProjectOperation info);

        DataTable Report_ProjectOperation(string seq);
        DataTable SubReport_ProjectOperation(string seq);
        DataTable Report_ProjectOperationEdit(string seq);
        DataTable SubReport_ProjectOperationEdit(string seq);
        string GetOptionProduct(string seq);
        string ProjectOprationCode(string strBgmProjOperSeq);
    }
}
